From ea3a20cdd30c78f1133e82f3c7113eb5aeeb406f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 29 Feb 2008 00:55:45 +0000 Subject: [PATCH] * (bug 13174) __HIDDENCAT__ now applies only to category pages --- RELEASE-NOTES | 1 + includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 552eefa3fe..6019ed220f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -58,6 +58,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13135) Special:Userrights now passes IDs through form submission to allow functionality on not-quite-right usernames * (bug 12575) Prevent duplicate patrol log entries from being created +* (bug 13174) __HIDDENCAT__ now applies only to category pages === API changes in 1.13 === diff --git a/includes/Parser.php b/includes/Parser.php index c94e5d48af..e21ee65b8d 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3287,7 +3287,7 @@ class Parser if ( isset( $this->mDoubleUnderscores['notoc'] ) && !$this->mForceTocPosition ) { $this->mShowToc = false; } - if ( isset( $this->mDoubleUnderscores['hiddencat'] ) ) { + if ( isset( $this->mDoubleUnderscores['hiddencat'] ) && $this->mTitle->getNamespace() == NS_CATEGORY ) { $this->mOutput->setProperty( 'hiddencat', 'y' ); $containerCategory = Title::makeTitleSafe( NS_CATEGORY, wfMsgForContent( 'hidden-category-category' ) ); -- 2.20.1